package Service;

import java.util.List;

import javax.persistence.EntityManager;

import DAO.StockDAO;
import Entity.Stock;
import VOs.CompanyVO;
import VOs.StockVO;

public class StockService {

	public void create(StockVO companyVo, EntityManager em) {
		Stock stock = new Stock();
		StockDAO.create(stock, em);
	}

	public List<StockVO> read(CompanyVO companyVo, EntityManager em) {
		Stock stock = new Stock();
		StockDAO.read(stock, em);
		return null;
	}

	public void update(StockVO companyVo, StockVO newOne, EntityManager em) {
		Stock stock = new Stock();
		StockDAO.update(stock, em);
	}

	public void delete(StockVO companyVo, EntityManager em) {
		Stock stock = new Stock();
		StockDAO.delete(stock, em);
	}

}
